package com.changgou.user.feign;

import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: HuangFu
 * @Date: 2020/2/10 19:53
 * @Description: 认证服务
*/
@FeignClient(name = "user")
public interface UserFeign {
    /**
     * 查询用户信息根据用户名
     * @param username
     * @return
     */
    @GetMapping("/user/load/{username}")
    User findUserInfo(@PathVariable String username);


}
